//
/******************************************************
        File name:    main.c
        Author:       Bitat (陆叁柒)
        Gitee :       https://gitee.com/bitat
        Email :       737166381@qq.com
        History:      2023/1/4
*******************************************************/


#include <stdio.h>

int main()
{
    int number;
    scanf("%d",&number);
    
    if(number%5==0)
        printf("YES\n");
    else
        printf("NO\n");
    
    return 0;
}
